package com.lokyiu.tutorial.java.exerisce3;

import java.util.concurrent.TimeUnit;

public class Test {
	public static void main(String[] args) throws Exception{
		VehicleGenarator vg = new VehicleGenarator(new Car("Benz"), 10);
		DrivingSimulate ds = new DrivingSimulate();
		Road road = new DirtRoad(1500);
		for(Vehicle vehicle : vg.getVehicles()){
			TimeUnit.SECONDS.sleep(1);
			ds = new DrivingSimulate(vehicle,road);
			
		}
	}
}
